# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-shquote
pkgver=1.0.0
pkgrel=1
pkgdesc="POSIX Shell Compatible Argument Parser"
url="https://github.com/c-util/c-shquote"
arch="all"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="
	c-stdaux-dev~=1
	meson
	"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-shquote/archive/v$pkgver/c-shquote-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
1dcd57a6e62cd27f9de32c5b0d9be8d71d531557a8a4d8c4985b205a2f6f9d42c4113c40b20e1a295b4d6586404e921a17781185634648fbf7c9174b64e6a776  c-shquote-1.0.0.tar.gz
"
